package com.gjy.concurrency.hc;

import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.Test;

import java.util.concurrent.*;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-03-30 15:06:18
 */
public class HcQueue {

    private static final ArrayBlockingQueue<Integer> abq = new ArrayBlockingQueue<>(10);
    private static final LinkedBlockingQueue<Integer> lbq = new LinkedBlockingQueue<>();
    private static final LinkedTransferQueue<Integer> ltq = new LinkedTransferQueue<>();
    private static final PriorityBlockingQueue<Integer> pbq = new PriorityBlockingQueue<>();
    private static final DelayQueue<DelayedImpl> dq = new DelayQueue<>();

    @Test
    public void test1() {

    }

    private static final class DelayedImpl implements Delayed {

        @Override
        public long getDelay(@NotNull TimeUnit unit) {
            return 0;
        }

        @Override
        public int compareTo(@NotNull Delayed o) {
            return 0;
        }
    }
}
